package com.happycat.console.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.happycat.console.commen.aspactj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 大神标签对象 cat_god_gategory
 * 
 * @author verne
 * @date 2020-07-17
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="大神标签对象", description="大神标签对象数据")
public class CatGodGategory implements Serializable {

private static final long serialVersionUID=1L;


    /** id */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 标签图标 */
    @Excel(name = "标签图标")
    @ApiModelProperty(value = "标签图标")
    private String gateIcon;

    /** 品类限制 */
    @Excel(name = "品类限制")
    @ApiModelProperty(value = "品类限制")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<Integer> godLimit = new ArrayList<>();

    /** 标签简介 */
    @Excel(name = "标签简介")
    @ApiModelProperty(value = "标签简介")
    private String intro;

    /** 如何获得 */
    @Excel(name = "如何获得")
    @ApiModelProperty(value = "如何获得")
    private String content;

    /** 创建者 */
    @ApiModelProperty(value = "如何获得")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createData;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value = "已获得人数")
    private Integer obtains;

}
